/**
 * @author: 小红
 * @date: 2025/3/26
 * @Description: 常用笔记
 */

import http from '@/utils/http';
import type { _AxiosRequestConfig } from '@/utils/http/types';
import type { NoteOftenEntity } from '@/entity/note/NoteEntity';

/**
 * 常用笔记
 * @param data
 * @param options
 * @constructor
 */
export const ApiNoteOftenList = (data?: any, options?: _AxiosRequestConfig) => http.get<NoteOftenEntity[]>('/infra/notes/often/list', data, options);

/**
 * 移出常用笔记
 * @param id
 * @param options
 * @constructor
 */
export const ApiNoteOftenRemove = (id?: string | number, options?: _AxiosRequestConfig) => http.post(`/infra/notes/often/cancel/${id}`, {}, options);

/**
 * 添加常用笔记
 * @param id
 * @param options
 * @constructor
 */
export const ApiNoteOftenAdd = (id?: string | number, options?: _AxiosRequestConfig) => http.post(`/infra/notes/often/add/${id}`, {}, options);
